﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class BaoLoi : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string mod= Request.QueryString["mod"];
        string urlPre = Request.UrlReferrer.ToString();
        
        if (mod == "SignUp")
        {
            multiviewMessage.ActiveViewIndex = 0;
            litMessage0.Text = "đăng ký";
            hpl0.NavigateUrl = "TrangChu.aspx";
        }
        if (mod == "notLogin")
        {
            multiviewMessage.ActiveViewIndex = 2;
            hpl2.NavigateUrl = urlPre;
        }
        if (mod == "ThemTien")
        {
            multiviewMessage.ActiveViewIndex = 3;
            litMessage3.Text = "Bạn Đã Nộp Tiền Vào Tài Khoản";
            hpl3.NavigateUrl = "TrangChu.aspx";
        }
        if (mod == "login")
        {
            multiviewMessage.ActiveViewIndex = 0;
            litMessage0.Text = "đăng nhập";
            hpl0.NavigateUrl = urlPre;
        }
        if (mod == "CheckOut")
        {
            multiviewMessage.ActiveViewIndex = 3;
            litMessage3.Text = "đặt hàng";
            hpl3.NavigateUrl = "TrangChu.aspx";
        }
        if (mod == "Update")
        {
            multiviewMessage.ActiveViewIndex = 3;
            litMessage3.Text = "cập nhật thông tin cá nhân";
            hpl3.NavigateUrl = "TrangChu.aspx";
        }
        if (mod == "ChangePassword")
        {
            multiviewMessage.ActiveViewIndex = 3;
            litMessage3.Text = "thay đổi mật khẩu";
            hpl3.NavigateUrl = "TrangChu.aspx";
        }
        if (mod == "logout")
        {
            multiviewMessage.ActiveViewIndex = 3;
            litMessage3.Text = "đăng xuất";
            hpl3.NavigateUrl = "TrangChu.aspx";
        }
        if (mod == "hasNotProduct")
        {
            multiviewMessage.ActiveViewIndex =1;
            hpl1.NavigateUrl = urlPre;
        }
        if (mod == "quality")
        {
            multiviewMessage.ActiveViewIndex = 4;
            hpl4.NavigateUrl = urlPre;
        }
        if (mod == "emptyCart")
        {
            multiviewMessage.ActiveViewIndex = 5;
            hpl5.NavigateUrl = "TrangChu.aspx";
        }
        if (mod == "SendEmailError")
        {
            multiviewMessage.ActiveViewIndex = 6;
            hpl6.NavigateUrl = "TrangChu.aspx";
        }
      
    }
}